package com.mashibing.class16;

import java.util.HashMap;
import java.util.HashSet;

// 图
public class Graph {
    public HashMap<Integer, Node> nodes; // 点集合
    public HashSet<Edge> edges; // 边集合

    public Graph() {
        nodes = new HashMap<Integer, Node>();
        edges = new HashSet<Edge>();
    }

    public Graph(HashMap<Integer, Node> nodes, HashSet<Edge> edges) {
        this.nodes = nodes;
        this.edges = edges;
    }
}
